public class InitAccount {
     public static void main(String[] args) {
          //创建账户对象
          Account zhangSan = new Account();
          //给账户对象属性赋值
          zhangSan.id = "1000";
          zhangSan.name  = "张三";
          zhangSan.password = "123456";
          zhangSan.personId = "340104199210227865";
          zhangSan.email = "zhangsan1992@163.com";
          zhangSan.balance = 1000;

          //存入2000
          zhangSan.deposit(2000);
          System.out.println("当前账户余额是:" + zhangSan.balance);
          //取1500
          zhangSan.withdraw(1500);
          System.out.println("当前账户余额是:" + zhangSan.balance);
     }

     }

